package com.lhoverc.service.complaint.impl;

import com.lhoverc.mapper.ComplaintMapper;
import com.lhoverc.pojo.VO.ComplaintVO;
import com.lhoverc.pojo.dto.ComplaintReplyDto;
import com.lhoverc.pojo.entity.ComplaintEntity;
import com.lhoverc.service.complaint.ComplaintService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: LiCheng
 * @CreateTime: 2025-05-03
 * @Description:
 * @Version: 1.0
 */
@Service
public class ComplaintServiceImpl implements ComplaintService {

    @Autowired
    private ComplaintMapper complaintMapper;

    @Override
    public List<ComplaintVO> getComplaintAdvice() {
        List<ComplaintVO> complaintVOList = complaintMapper.getComplaintAdvice();
        return complaintVOList;
    }

    @Override
    public void isDeal(ComplaintReplyDto complaintReplyDto) {
        complaintMapper.updateIsDeal(complaintReplyDto);
    }
}
